package com.gsmr.util;

import java.util.ArrayList;
import java.util.List;

/**
 * 字符串工具类
 * @author 
 *
 */
public class RandomUtil {

	/**
	 * 模拟实时入库数据的数量
	 * @param str
	 * @return
	 */
	public  static void generateRandomRealTimeQuantity(){
		int[] random = new int[5];
		 java.util.Random r=new java.util.Random(); 
		 for(int i=0;i<random.length;i++){ 
			 random[i] = r.nextInt(10);
		 } 
		 for(int j = 0;j<random.length;j++){
			PropertityUtil.FrequencySpectrum_CURRENT_QUANTITY = random[j];
			PropertityUtil.SACCH_CURRENT_QUANTITY = random[++j];
			PropertityUtil.SDCCH_CURRENT_QUANTITY = random[++j];
			PropertityUtil.FACCH_CURRENT_QUANTITY = random[++j];
			PropertityUtil.TCH_CURRENT_QUANTITY = random[++j];
		 }
		
	}
	
	public static void main(String[] args){
		RandomUtil.generateRandomRealTimeQuantity();
		System.out.println("PropertityUtil.FACCH_CURRENT_QUANTITY:"+PropertityUtil.FACCH_CURRENT_QUANTITY);
		System.out.println("PropertityUtil.SACCH_CURRENT_QUANTITY:"+PropertityUtil.SACCH_CURRENT_QUANTITY);
		System.out.println("PropertityUtil.SDCCH_CURRENT_QUANTITY:"+PropertityUtil.SDCCH_CURRENT_QUANTITY);
		System.out.println("PropertityUtil.FACCH_CURRENT_QUANTITY:"+PropertityUtil.FACCH_CURRENT_QUANTITY);
		System.out.println("PropertityUtil.TCH_CURRENT_QUANTITY:"+PropertityUtil.TCH_CURRENT_QUANTITY);

	}
}
